package top.eggcode.system.modules.log.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.eggcode.common.base.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/25 21:05
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@ApiModel("操作日志")
@Data
@Table(name = "log_login")
@Entity
public class LoginLogEntity extends BaseEntity {

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("IP地址")
    private String remoteAddr;

    @ApiModelProperty("远程端口")
    private String remotePort;

    @ApiModelProperty("浏览器名称")
    private String browserName;

    @ApiModelProperty("操作系统名称")
    private String operatingSystemName;

    @ApiModelProperty("状态")
    private Short status;

    @ApiModelProperty("会话令牌")
    private String sessionToken;

    @ApiModelProperty("设备类型")
    private String deviceType;
}
